# 队列
from queue import Queue

# 创建对列对象
q = Queue(maxsize=100)
# 放入队列
print(q.put(1))  # None
[q.put(i) for i in range(10)]

# 队列长度
print(q.qsize())  # 11

# 队列是否为空
print(q.empty())  # False

# 对列是否满了
print(q.full())  # False

# 从队列中取出元素
print(q.get())  # 1
